package com.tvi.cloud.organization;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.messaging.Source;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

@SpringBootApplication
@EnableEurekaClient
//告诉你的微服务是受保护的资源
@EnableResourceServer
//激活Feign client
@EnableFeignClients
//启用消息代理。Source.class 类的使用告诉 Spring Cloud Stream， 这个服务将通过定义在
// Source 中的一组通道消息代理通信
@EnableBinding(Source.class)
public class OrganizationServiceApplication {
	public static void main(String[] args) {
		SpringApplication.run(OrganizationServiceApplication.class, args);
	}
}
